package com.guchenbo.example.thread.singleton;

import java.util.concurrent.TimeUnit;

/**
 * @Author guchenbo
 * @Date 2019/7/5.
 */
public class Singleton {

    private String name;

    public Singleton() {
    }

    public Singleton(String name) {
        try {
            TimeUnit.SECONDS.sleep(10l);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        this.name = name;
    }

    public String getName() {
        return name;
    }
}
